package com.bdqn.t320.ch13.controller;


import com.bdqn.t320.ch13.entity.Role;
import com.bdqn.t320.ch13.service.RoleService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("/role")
public class RoleController {

    @Resource
    RoleService roleService;

    @ResponseBody
    @RequestMapping(value = "/list")
    public Object list(Model model) {
        //List<Role> roleList = roleService.getRoleListBiz();
        return roleService.getRoleListBiz();
    }
}
